package org.erp.product.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.erp.common.basic.BaseEntity;

import java.util.Date;

/**
 * 渠道销售实体
 *
 * @author libin
 * @version 1.0
 * @description: 渠道销售实体
 * @date 2025/11/13 16:02
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@TableName(value = "channel_sale", autoResultMap = true)
public class ChannelSale extends BaseEntity {
    /**
     * 自增id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 产品id
     */
    private Long productId;
    /**
     * 渠道id
     */
    private Integer channelId;
    /**
     * 渠道名称
     */
    private String channelName;
    /**
     * 最后同步时间
     */
    private Date lastSyncTime;
    /**
     * 销售价格
     */
    private Integer salePrice;
    /**
     * 上架时间
     */
    private Date listingTime;
    /**
     * 售出时间
     */
    private Date saleTime;
    /**
     * 产品状态
     */
    private Integer status;
}
